<php>
$atype = $_REQUEST['atype'];
if(empty($atype))$atype='in';
$pageData = service('UserAccount')->search4UserAccountCash($atype,16);
if(empty($pageData)||empty($pageData['data'])){
</php>
	<div style="width:100%;text-align:center;margin-top:15px;">
	<php>$alert_message="暂无相关记录！";</php>
		<include file="../Public/alert_box.html" />
	</div>
<php>}else{
	$paymentdict = service('Dict')->getAllDictKeyValueByCode('payprovider');
</php>
<script>
    //鼠标移动表格效果
    inittable();
</script>
  			<div class="list" style="margin-top:0px">
			  	<table cellspacing="0" cellpadding="0" border="0" width="100%" id="record_item_list">
					<tbody>
					<php>if($atype=='in'){
							$chargedict = service('Dict')->getAllDictKeyValueByCode('charge');
					</php>
					  <tr rel="title">
					    <th style="text-align: center;">序号</th>
					    <th style="text-align: center;" class="line_l">支付方式</th>
					    <th style="text-align: center;" class="line_l">类型</th>
					    <th style="text-align: center;" class="line_l">金额</th>
					    <th style="text-align: center;" class="line_l">充值时间</th>
					  </tr>
					  <volist id="vo" name="pageData['data']" >
						  <tr rel="{$i}">
						 		<td style="text-align: center;border-left: 0px;">{$i}</td>
						       	<td style="text-align: center;">{$paymentdict[$vo['service']]}</td>
						       	<td style="text-align: center;">{$chargedict[$vo['sub_pay_type']]}</td>
						       	<td style="text-align: right;">{:formatMoney($vo['total_fee'])}</td>
						       	<td style="text-align: center;">{:paramMillisecond2Date($vo['ctime'],'Y-m-d H:i:s')}</td>
						  </tr>
					  </volist>
					<php>}</php>
					<php>if($atype=='out'){
						$paydict = service('Dict')->getAllDictKeyValueByCode('pay');
					</php>
					  <tr rel="title">
					    <th style="text-align: center;">序号</th>
					    <th style="text-align: center;" class="line_l">支付方式</th>
					    <th style="text-align: center;" class="line_l">类型</th>
					    <th style="text-align: center;" class="line_l">金额</th>
					    <th style="text-align: center;" class="line_l">支出时间</th>
					  </tr>
					  <volist id="vo" name="pageData['data']" >
						  <tr rel="{$i}">
						 		<td style="text-align: center;border-left: 0px;">{$i}</td>
						       	<td style="text-align: center;">{$paymentdict[$vo['service']]}</td>
						       	<td style="text-align: center;">{$paydict[$vo['pay_type']]}</td>
						       	<td style="text-align: right;">{:formatMoney($vo['total_fee'])}</td>
						       	<td style="text-align: center;">{:paramMillisecond2Date($vo['ctime'],'Y-m-d H:i:s')}</td>
						  </tr>
					  </volist>
					<php>}</php>
					</tbody>
				</table>
			</div>
			<div id="clear"></div>
			<div>
				<div class="page_box">{$pageData['html']}</div>
			</div>
<php>}</php>

<input type="hidden" id="atype" value="{$atype}"><!-- 用于记录查看的积分类型 -->
